from paraview import simple

FIELDS = {
  'surface': [
    'atmospheric pressure',
    'downward longwave radiation',
    'downward shortwave radiation',
    'elevation',
    'mannings',
    'precipitation',
    'slope',
    'specific humidity',
    'temperature',
    'wind velocity',
  ],
  'subsurface': [
    'mask',
    'permeability',
    'porosity',
    # 'pressure', # No rescale for pressure
    'saturation',
    'specific storage',
  ],
}

PRESETS = {
  # Surface
  'atmospheric pressure': {
    'AutomaticRescaleRangeMode': -1,
    'RGBPoints': [96404.79989109091, 0.8901960784313725, 0.9568627450980393, 0.984313725490196, 96419.49319492039, 0.807843137254902, 0.9019607843137255, 0.9607843137254902, 96434.18649874987, 0.7607843137254902, 0.8588235294117647, 0.9294117647058824, 96463.57310640883, 0.6862745098039216, 0.7843137254901961, 0.8705882352941177, 96492.95971406781, 0.6, 0.6980392156862745, 0.8, 96522.34632172677, 0.5176470588235295, 0.615686274509804, 0.7254901960784313, 96551.73292938573, 0.44313725490196076, 0.5333333333333333, 0.6431372549019608, 96581.1195370447, 0.37254901960784315, 0.4588235294117647, 0.5686274509803921, 96610.50614470366, 0.3058823529411765, 0.38823529411764707, 0.49411764705882355, 96639.89275236263, 0.24705882352941178, 0.3176470588235294, 0.41568627450980394, 96669.2793600216, 0.2, 0.2549019607843137, 0.34509803921568627, 96698.66596768056, 0.14902, 0.196078, 0.278431, 96713.75149482579, 0.2, 0.1450980392156863, 0.13725490196078433, 96728.82816416769, 0.23137254901960785, 0.17254901960784313, 0.16470588235294117, 96743.9048335096, 0.2549019607843137, 0.2, 0.1843137254901961, 96758.9815028515, 0.28627450980392155, 0.23137254901960785, 0.21176470588235294, 96774.0581721934, 0.3176470588235294, 0.2627450980392157, 0.23921568627450981, 96789.1348415353, 0.34509803921568627, 0.29411764705882354, 0.26666666666666666, 96804.2115108772, 0.37254901960784315, 0.3215686274509804, 0.29411764705882354, 96819.28818021911, 0.403921568627451, 0.3568627450980392, 0.3176470588235294, 96834.36484956101, 0.43137254901960786, 0.38823529411764707, 0.34509803921568627, 96849.44151890291, 0.4627450980392157, 0.4196078431372549, 0.37254901960784315, 96864.51818824481, 0.4980392156862745, 0.4588235294117647, 0.40784313725490196, 96879.59485758672, 0.5372549019607843, 0.5058823529411764, 0.44313725490196076, 96894.67152692862, 0.5803921568627451, 0.5568627450980392, 0.48627450980392156, 96909.74819627052, 0.6313725490196078, 0.6078431372549019, 0.5333333333333333, 96924.82486561242, 0.6784313725490196, 0.6627450980392157, 0.5803921568627451, 96939.90153495432, 0.7254901960784313, 0.7137254901960784, 0.6274509803921569, 96954.97820429623, 0.7764705882352941, 0.7647058823529411, 0.6784313725490196, 96970.05487363813, 0.8274509803921568, 0.8235294117647058, 0.7372549019607844, 96985.13154298003, 0.8901960784313725, 0.8901960784313725, 0.807843137254902, 97000.20821232193, 0.9529411764705882, 0.9529411764705882, 0.8941176470588236, 97000.20821232193, 0.9529411764705882, 0.9529411764705882, 0.8941176470588236, 97000.21707012526, 0.9882352941176471, 0.9882352941176471, 0.8588235294117647, 97000.79779643302, 0.984313725490196, 0.9882352941176471, 0.8549019607843137, 97014.73522781904, 0.9882352941176471, 0.9882352941176471, 0.7568627450980392, 97029.2533855128, 0.9803921568627451, 0.9725490196078431, 0.6705882352941176, 97043.77154320657, 0.9803921568627451, 0.9490196078431372, 0.596078431372549, 97058.28970090034, 0.9725490196078431, 0.9176470588235294, 0.5137254901960784, 97072.80785859411, 0.9686274509803922, 0.8784313725490196, 0.4235294117647059, 97087.32601628787, 0.9647058823529412, 0.8274509803921568, 0.3254901960784314, 97101.84417398165, 0.9529411764705882, 0.7686274509803922, 0.24705882352941178, 97116.36233167541, 0.9450980392156862, 0.7098039215686275, 0.1843137254901961, 97130.88048936918, 0.9372549019607843, 0.6431372549019608, 0.12156862745098039, 97145.39864706295, 0.9254901960784314, 0.5803921568627451, 0.0784313725490196, 97159.91680475672, 0.9176470588235294, 0.5215686274509804, 0.047058823529411764, 97174.43496245048, 0.9019607843137255, 0.4588235294117647, 0.027450980392156862, 97188.95312014426, 0.8627450980392157, 0.3803921568627451, 0.011764705882352941, 97203.47127783802, 0.788235294117647, 0.2901960784313726, 0.0, 97217.9894355318, 0.7411764705882353, 0.22745098039215686, 0.00392156862745098, 97232.50759322556, 0.6627450980392157, 0.16862745098039217, 0.01568627450980392, 97247.02575091933, 0.5882352941176471, 0.11372549019607843, 0.023529411764705882, 97261.5439086131, 0.49411764705882355, 0.054901960784313725, 0.03529411764705882, 97276.06206630687, 0.396078431372549, 0.0392156862745098, 0.058823529411764705, 97290.58022400063, 0.301961, 0.047059, 0.090196],
    'UseLogScale': 0,
    'ColorSpace': 'Lab',
    'Discretize': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
  },
  'downward longwave radiation': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'Diverging',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [299.7900307698608, 0.001462, 0.000466, 0.013866, 299.81544549522766, 0.002267, 0.00127, 0.01857, 299.8408537405524, 0.003299, 0.002249, 0.024239, 299.8662684659193, 0.004547, 0.003392, 0.030909, 299.891676711244, 0.006006, 0.004692, 0.038558, 299.91709143661086, 0.007676, 0.006136, 0.046836, 299.9424996819356, 0.009561, 0.007713, 0.055143, 299.9679144073025, 0.011663, 0.009417, 0.06346, 299.9933291326694, 0.013995, 0.011225, 0.071862, 300.0187373779941, 0.016561, 0.013136, 0.080282, 300.044152103361, 0.019373, 0.015133, 0.088767, 300.0695603486857, 0.022447, 0.017199, 0.097327, 300.09497507405257, 0.025793, 0.019331, 0.10593, 300.1203833193773, 0.029432, 0.021503, 0.114621, 300.1457980447442, 0.033385, 0.023702, 0.123397, 300.1712127701111, 0.037668, 0.025921, 0.132232, 300.1966210154358, 0.042253, 0.028139, 0.141141, 300.2220357408027, 0.046915, 0.030324, 0.150164, 300.2474439861274, 0.051644, 0.032474, 0.159254, 300.2728587114943, 0.056449, 0.034569, 0.168414, 300.298266956819, 0.06134, 0.03659, 0.177642, 300.3236816821859, 0.066331, 0.038504, 0.186962, 300.3490964075528, 0.071429, 0.040294, 0.196354, 300.37450465287753, 0.076637, 0.041905, 0.205799, 300.3999193782444, 0.081962, 0.043328, 0.215289, 300.4253276235691, 0.087411, 0.044556, 0.224813, 300.450742348936, 0.09299, 0.045583, 0.234358, 300.47615059426073, 0.098702, 0.046402, 0.243904, 300.5015653196276, 0.104551, 0.047008, 0.25343, 300.52697356495236, 0.110536, 0.047399, 0.262912, 300.55238829031924, 0.116656, 0.047574, 0.272321, 300.57780301568613, 0.122908, 0.047536, 0.281624, 300.6032112610108, 0.129285, 0.047293, 0.290788, 300.6286259863777, 0.135778, 0.046856, 0.299776, 300.65403423170244, 0.142378, 0.046242, 0.308553, 300.6794489570693, 0.149073, 0.045468, 0.317085, 300.70485720239407, 0.15585, 0.044559, 0.325338, 300.73027192776095, 0.162689, 0.043554, 0.333277, 300.75568665312784, 0.169575, 0.042489, 0.340874, 300.7810948984525, 0.176493, 0.041402, 0.348111, 300.8065096238194, 0.183429, 0.040329, 0.354971, 300.83191786914415, 0.190367, 0.039309, 0.361447, 300.85733259451104, 0.197297, 0.0384, 0.367535, 300.8827408398358, 0.204209, 0.037632, 0.373238, 300.90815556520266, 0.211095, 0.03703, 0.378563, 300.93357029056955, 0.217949, 0.036615, 0.383522, 300.95897853589423, 0.224763, 0.036405, 0.388129, 300.9843932612611, 0.231538, 0.036405, 0.3924, 301.00980150658586, 0.238273, 0.036621, 0.396353, 301.03521623195275, 0.244967, 0.037055, 0.400007, 301.0606244772775, 0.25162, 0.037705, 0.403378, 301.0860392026444, 0.258234, 0.038571, 0.406485, 301.11145392801126, 0.26481, 0.039647, 0.409345, 301.13686217333594, 0.271347, 0.040922, 0.411976, 301.1622768987028, 0.27785, 0.042353, 0.414392, 301.18768514402757, 0.284321, 0.043933, 0.416608, 301.21309986939445, 0.290763, 0.045644, 0.418637, 301.2385081147192, 0.297178, 0.04747, 0.420491, 301.2639228400861, 0.303568, 0.049396, 0.422182, 301.28933756545297, 0.309935, 0.051407, 0.423721, 301.31474581077765, 0.316282, 0.05349, 0.425116, 301.34016053614454, 0.32261, 0.055634, 0.426377, 301.3655687814693, 0.328921, 0.057827, 0.427511, 301.39098350683616, 0.335217, 0.06006, 0.428524, 301.4163917521609, 0.3415, 0.062325, 0.429425, 301.4418064775278, 0.347771, 0.064616, 0.430217, 301.4672212028947, 0.354032, 0.066925, 0.430906, 301.49262944821936, 0.360284, 0.069247, 0.431497, 301.51804417358625, 0.366529, 0.071579, 0.431994, 301.543452418911, 0.372768, 0.073915, 0.4324, 301.5688671442779, 0.379001, 0.076253, 0.432719, 301.5942753896026, 0.385228, 0.078591, 0.432955, 301.6196901149695, 0.391453, 0.080927, 0.433109, 301.6451048403364, 0.397674, 0.083257, 0.433183, 301.67051308566107, 0.403894, 0.08558, 0.433179, 301.69592781102796, 0.410113, 0.087896, 0.433098, 301.7213360563527, 0.416331, 0.090203, 0.432943, 301.7467507817196, 0.422549, 0.092501, 0.432714, 301.7721590270443, 0.428768, 0.09479, 0.432412, 301.7975737524112, 0.434987, 0.097069, 0.432039, 301.8229819977359, 0.441207, 0.099338, 0.431594, 301.8483967231028, 0.447428, 0.101597, 0.43108, 301.87381144846967, 0.453651, 0.103848, 0.430498, 301.8992196937944, 0.459875, 0.106089, 0.429846, 301.9246344191613, 0.4661, 0.108322, 0.429125, 301.95004266448603, 0.472328, 0.110547, 0.428334, 301.9754573898529, 0.478558, 0.112764, 0.427475, 302.0008656351776, 0.484789, 0.114974, 0.426548, 302.0262803605445, 0.491022, 0.117179, 0.425552, 302.0516950859114, 0.497257, 0.119379, 0.424488, 302.0771033312361, 0.503493, 0.121575, 0.423356, 302.102518056603, 0.50973, 0.123769, 0.422156, 302.12792630192774, 0.515967, 0.12596, 0.420887, 302.15334102729463, 0.522206, 0.12815, 0.419549, 302.1787492726193, 0.528444, 0.130341, 0.418142, 302.2041639979862, 0.534683, 0.132534, 0.416667, 302.2295787233531, 0.54092, 0.134729, 0.415123, 302.2549869686778, 0.547157, 0.136929, 0.413511, 302.2804016940447, 0.553392, 0.139134, 0.411829, 302.30580993936945, 0.559624, 0.141346, 0.410078, 302.33122466473634, 0.565854, 0.143567, 0.408258, 302.356632910061, 0.572081, 0.145797, 0.406369, 302.3820476354279, 0.578304, 0.148039, 0.404411, 302.4074623607948, 0.584521, 0.150294, 0.402385, 302.43287060611954, 0.590734, 0.152563, 0.40029, 302.4582853314864, 0.59694, 0.154848, 0.398125, 302.48369357681116, 0.603139, 0.157151, 0.395891, 302.50910830217805, 0.60933, 0.159474, 0.393589, 302.53451654750273, 0.615513, 0.161817, 0.391219, 302.5599312728696, 0.621685, 0.164184, 0.388781, 302.5853459982365, 0.627847, 0.166575, 0.386276, 302.61075424356125, 0.633998, 0.168992, 0.383704, 302.63616896892813, 0.640135, 0.171438, 0.381065, 302.6615772142529, 0.64626, 0.173914, 0.378359, 302.68699193961976, 0.652369, 0.176421, 0.375586, 302.71240018494444, 0.658463, 0.178962, 0.372748, 302.73781491031133, 0.66454, 0.181539, 0.369846, 302.7632296356782, 0.670599, 0.184153, 0.366879, 302.78863788100296, 0.676638, 0.186807, 0.363849, 302.81405260636984, 0.682656, 0.189501, 0.360757, 302.8394608516946, 0.688653, 0.192239, 0.357603, 302.86487557706147, 0.694627, 0.195021, 0.354388, 302.89028382238615, 0.700576, 0.197851, 0.351113, 302.91569854775304, 0.7065, 0.200728, 0.347777, 302.9411132731199, 0.712396, 0.203656, 0.344383, 302.96652151844467, 0.718264, 0.206636, 0.340931, 302.99193624381155, 0.724103, 0.20967, 0.337424, 303.01734448913624, 0.729909, 0.212759, 0.333861, 303.0427592145031, 0.735683, 0.215906, 0.330245, 303.06816745982786, 0.741423, 0.219112, 0.326576, 303.09358218519475, 0.747127, 0.222378, 0.322856, 303.1189904305195, 0.752794, 0.225706, 0.319085, 303.1444051558864, 0.758422, 0.229097, 0.315266, 303.16981988125326, 0.76401, 0.232554, 0.311399, 303.19522812657794, 0.769556, 0.236077, 0.307485, 303.22064285194483, 0.775059, 0.239667, 0.303526, 303.24605109726957, 0.780517, 0.243327, 0.299523, 303.27146582263646, 0.785929, 0.247056, 0.295477, 303.2968740679612, 0.791293, 0.250856, 0.29139, 303.3222887933281, 0.796607, 0.254728, 0.287264, 303.34770351869497, 0.801871, 0.258674, 0.283099, 303.37311176401965, 0.807082, 0.262692, 0.278898, 303.39852648938654, 0.812239, 0.266786, 0.274661, 303.4239347347113, 0.817341, 0.270954, 0.27039, 303.44934946007817, 0.822386, 0.275197, 0.266085, 303.4747577054029, 0.827372, 0.279517, 0.26175, 303.5001724307698, 0.832299, 0.283913, 0.257383, 303.5255871561367, 0.837165, 0.288385, 0.252988, 303.55099540146136, 0.841969, 0.292933, 0.248564, 303.57641012682825, 0.846709, 0.297559, 0.244113, 303.601818372153, 0.851384, 0.30226, 0.239636, 303.6272330975199, 0.855992, 0.307038, 0.235133, 303.6526413428446, 0.860533, 0.311892, 0.230606, 303.6780560682115, 0.865006, 0.316822, 0.226055, 303.7034707935784, 0.869409, 0.321827, 0.221482, 303.7288790389031, 0.873741, 0.326906, 0.216886, 303.75429376426996, 0.878001, 0.33206, 0.212268, 303.7797020095947, 0.882188, 0.337287, 0.207628, 303.8051167349616, 0.886302, 0.342586, 0.202968, 303.8305249802863, 0.890341, 0.347957, 0.198286, 303.8559397056532, 0.894305, 0.353399, 0.193584, 303.8813544310201, 0.898192, 0.358911, 0.18886, 303.9067626763448, 0.902003, 0.364492, 0.184116, 303.93217740171167, 0.905735, 0.37014, 0.17935, 303.9575856470364, 0.90939, 0.375856, 0.174563, 303.9830003724033, 0.912966, 0.381636, 0.169755, 304.00840861772804, 0.916462, 0.387481, 0.164924, 304.0338233430949, 0.919879, 0.393389, 0.16007, 304.0592380684618, 0.923215, 0.399359, 0.155193, 304.0846463137865, 0.92647, 0.405389, 0.150292, 304.1100610391534, 0.929644, 0.411479, 0.145367, 304.1354692844781, 0.932737, 0.417627, 0.140417, 304.160884009845, 0.935747, 0.423831, 0.13544, 304.18629225516975, 0.938675, 0.430091, 0.130438, 304.21170698053663, 0.941521, 0.436405, 0.125409, 304.2371217059035, 0.944285, 0.442772, 0.120354, 304.2625299512282, 0.946965, 0.449191, 0.115272, 304.2879446765951, 0.949562, 0.45566, 0.110164, 304.31335292191983, 0.952075, 0.462178, 0.105031, 304.3387676472867, 0.954506, 0.468744, 0.099874, 304.36417589261146, 0.956852, 0.475356, 0.094695, 304.38959061797834, 0.959114, 0.482014, 0.089499, 304.414998863303, 0.961293, 0.488716, 0.084289, 304.4404135886699, 0.963387, 0.495462, 0.079073, 304.4658283140368, 0.965397, 0.502249, 0.073859, 304.49123655936154, 0.967322, 0.509078, 0.068659, 304.5166512847284, 0.969163, 0.515946, 0.063488, 304.54205953005317, 0.970919, 0.522853, 0.058367, 304.56747425542005, 0.97259, 0.529798, 0.053324, 304.59288250074474, 0.974176, 0.53678, 0.048392, 304.6182972261116, 0.975677, 0.543798, 0.043618, 304.6437119514785, 0.977092, 0.55085, 0.03905, 304.66912019680325, 0.978422, 0.557937, 0.034931, 304.69453492217013, 0.979666, 0.565057, 0.031409, 304.7199431674949, 0.980824, 0.572209, 0.028508, 304.74535789286176, 0.981895, 0.579392, 0.02625, 304.77076613818645, 0.982881, 0.586606, 0.024661, 304.79618086355333, 0.983779, 0.593849, 0.02377, 304.8215955889202, 0.984591, 0.601122, 0.023606, 304.84700383424496, 0.985315, 0.608422, 0.024202, 304.87241855961184, 0.985952, 0.61575, 0.025592, 304.8978268049366, 0.986502, 0.623105, 0.027814, 304.92324153030347, 0.986964, 0.630485, 0.030908, 304.94864977562816, 0.987337, 0.63789, 0.034916, 304.97406450099504, 0.987622, 0.64532, 0.039886, 304.9994792263619, 0.987819, 0.652773, 0.045581, 305.02488747168667, 0.987926, 0.66025, 0.05175, 305.05030219705355, 0.987945, 0.667748, 0.058329, 305.0757104423783, 0.987874, 0.675267, 0.065257, 305.1011251677452, 0.987714, 0.682807, 0.072489, 305.12653341306986, 0.987464, 0.690366, 0.07999, 305.15194813843675, 0.987124, 0.697944, 0.087731, 305.17736286380364, 0.986694, 0.70554, 0.095694, 305.2027711091284, 0.986175, 0.713153, 0.103863, 305.22818583449526, 0.985566, 0.720782, 0.112229, 305.25359407982, 0.984865, 0.728427, 0.120785, 305.2790088051869, 0.984075, 0.736087, 0.129527, 305.3044170505116, 0.983196, 0.743758, 0.138453, 305.32983177587846, 0.982228, 0.751442, 0.147565, 305.35524650124535, 0.981173, 0.759135, 0.156863, 305.3806547465701, 0.980032, 0.766837, 0.166353, 305.406069471937, 0.978806, 0.774545, 0.176037, 305.4314777172617, 0.977497, 0.782258, 0.185923, 305.4568924426286, 0.976108, 0.789974, 0.196018, 305.4823006879533, 0.974638, 0.797692, 0.206332, 305.50771541332017, 0.973088, 0.805409, 0.216877, 305.53313013868706, 0.971468, 0.813122, 0.227658, 305.5585383840118, 0.969783, 0.820825, 0.238686, 305.5839531093787, 0.968041, 0.828515, 0.249972, 305.6093613547034, 0.966243, 0.836191, 0.261534, 305.6347760800703, 0.964394, 0.843848, 0.273391, 305.660184325395, 0.962517, 0.851476, 0.285546, 305.6855990507619, 0.960626, 0.859069, 0.29801, 305.7110072960866, 0.95872, 0.866624, 0.31082, 305.7364220214535, 0.956834, 0.874129, 0.323974, 305.7618367468204, 0.954997, 0.881569, 0.337475, 305.78724499214513, 0.953215, 0.888942, 0.351369, 305.812659717512, 0.951546, 0.896226, 0.365627, 305.8380679628367, 0.950018, 0.903409, 0.380271, 305.8634826882036, 0.948683, 0.910473, 0.395289, 305.88889093352833, 0.947594, 0.917399, 0.410665, 305.9143056588952, 0.946809, 0.924168, 0.426373, 305.9397203842621, 0.946392, 0.930761, 0.442367, 305.96512862958684, 0.946403, 0.937159, 0.458592, 305.99054335495373, 0.946903, 0.943348, 0.47497, 306.0159516002784, 0.947937, 0.949318, 0.491426, 306.0413663256453, 0.949545, 0.955063, 0.50786, 306.06677457097004, 0.95174, 0.960587, 0.524203, 306.0921892963369, 0.954529, 0.965896, 0.540361, 306.1176040217038, 0.957896, 0.971003, 0.556275, 306.14301226702855, 0.961812, 0.975924, 0.571925, 306.16842699239544, 0.966249, 0.980678, 0.587206, 306.1938352377201, 0.971162, 0.985282, 0.602154, 306.219249963087, 0.976511, 0.989753, 0.61676, 306.24465820841175, 0.982257, 0.994109, 0.631017, 306.27007293377864, 0.988362, 0.998364, 0.644924],
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'downward shortwave radiation': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'Diverging',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [299.7900307698608, 0.001462, 0.000466, 0.013866, 299.81544549522766, 0.002267, 0.00127, 0.01857, 299.8408537405524, 0.003299, 0.002249, 0.024239, 299.8662684659193, 0.004547, 0.003392, 0.030909, 299.891676711244, 0.006006, 0.004692, 0.038558, 299.91709143661086, 0.007676, 0.006136, 0.046836, 299.9424996819356, 0.009561, 0.007713, 0.055143, 299.9679144073025, 0.011663, 0.009417, 0.06346, 299.9933291326694, 0.013995, 0.011225, 0.071862, 300.0187373779941, 0.016561, 0.013136, 0.080282, 300.044152103361, 0.019373, 0.015133, 0.088767, 300.0695603486857, 0.022447, 0.017199, 0.097327, 300.09497507405257, 0.025793, 0.019331, 0.10593, 300.1203833193773, 0.029432, 0.021503, 0.114621, 300.1457980447442, 0.033385, 0.023702, 0.123397, 300.1712127701111, 0.037668, 0.025921, 0.132232, 300.1966210154358, 0.042253, 0.028139, 0.141141, 300.2220357408027, 0.046915, 0.030324, 0.150164, 300.2474439861274, 0.051644, 0.032474, 0.159254, 300.2728587114943, 0.056449, 0.034569, 0.168414, 300.298266956819, 0.06134, 0.03659, 0.177642, 300.3236816821859, 0.066331, 0.038504, 0.186962, 300.3490964075528, 0.071429, 0.040294, 0.196354, 300.37450465287753, 0.076637, 0.041905, 0.205799, 300.3999193782444, 0.081962, 0.043328, 0.215289, 300.4253276235691, 0.087411, 0.044556, 0.224813, 300.450742348936, 0.09299, 0.045583, 0.234358, 300.47615059426073, 0.098702, 0.046402, 0.243904, 300.5015653196276, 0.104551, 0.047008, 0.25343, 300.52697356495236, 0.110536, 0.047399, 0.262912, 300.55238829031924, 0.116656, 0.047574, 0.272321, 300.57780301568613, 0.122908, 0.047536, 0.281624, 300.6032112610108, 0.129285, 0.047293, 0.290788, 300.6286259863777, 0.135778, 0.046856, 0.299776, 300.65403423170244, 0.142378, 0.046242, 0.308553, 300.6794489570693, 0.149073, 0.045468, 0.317085, 300.70485720239407, 0.15585, 0.044559, 0.325338, 300.73027192776095, 0.162689, 0.043554, 0.333277, 300.75568665312784, 0.169575, 0.042489, 0.340874, 300.7810948984525, 0.176493, 0.041402, 0.348111, 300.8065096238194, 0.183429, 0.040329, 0.354971, 300.83191786914415, 0.190367, 0.039309, 0.361447, 300.85733259451104, 0.197297, 0.0384, 0.367535, 300.8827408398358, 0.204209, 0.037632, 0.373238, 300.90815556520266, 0.211095, 0.03703, 0.378563, 300.93357029056955, 0.217949, 0.036615, 0.383522, 300.95897853589423, 0.224763, 0.036405, 0.388129, 300.9843932612611, 0.231538, 0.036405, 0.3924, 301.00980150658586, 0.238273, 0.036621, 0.396353, 301.03521623195275, 0.244967, 0.037055, 0.400007, 301.0606244772775, 0.25162, 0.037705, 0.403378, 301.0860392026444, 0.258234, 0.038571, 0.406485, 301.11145392801126, 0.26481, 0.039647, 0.409345, 301.13686217333594, 0.271347, 0.040922, 0.411976, 301.1622768987028, 0.27785, 0.042353, 0.414392, 301.18768514402757, 0.284321, 0.043933, 0.416608, 301.21309986939445, 0.290763, 0.045644, 0.418637, 301.2385081147192, 0.297178, 0.04747, 0.420491, 301.2639228400861, 0.303568, 0.049396, 0.422182, 301.28933756545297, 0.309935, 0.051407, 0.423721, 301.31474581077765, 0.316282, 0.05349, 0.425116, 301.34016053614454, 0.32261, 0.055634, 0.426377, 301.3655687814693, 0.328921, 0.057827, 0.427511, 301.39098350683616, 0.335217, 0.06006, 0.428524, 301.4163917521609, 0.3415, 0.062325, 0.429425, 301.4418064775278, 0.347771, 0.064616, 0.430217, 301.4672212028947, 0.354032, 0.066925, 0.430906, 301.49262944821936, 0.360284, 0.069247, 0.431497, 301.51804417358625, 0.366529, 0.071579, 0.431994, 301.543452418911, 0.372768, 0.073915, 0.4324, 301.5688671442779, 0.379001, 0.076253, 0.432719, 301.5942753896026, 0.385228, 0.078591, 0.432955, 301.6196901149695, 0.391453, 0.080927, 0.433109, 301.6451048403364, 0.397674, 0.083257, 0.433183, 301.67051308566107, 0.403894, 0.08558, 0.433179, 301.69592781102796, 0.410113, 0.087896, 0.433098, 301.7213360563527, 0.416331, 0.090203, 0.432943, 301.7467507817196, 0.422549, 0.092501, 0.432714, 301.7721590270443, 0.428768, 0.09479, 0.432412, 301.7975737524112, 0.434987, 0.097069, 0.432039, 301.8229819977359, 0.441207, 0.099338, 0.431594, 301.8483967231028, 0.447428, 0.101597, 0.43108, 301.87381144846967, 0.453651, 0.103848, 0.430498, 301.8992196937944, 0.459875, 0.106089, 0.429846, 301.9246344191613, 0.4661, 0.108322, 0.429125, 301.95004266448603, 0.472328, 0.110547, 0.428334, 301.9754573898529, 0.478558, 0.112764, 0.427475, 302.0008656351776, 0.484789, 0.114974, 0.426548, 302.0262803605445, 0.491022, 0.117179, 0.425552, 302.0516950859114, 0.497257, 0.119379, 0.424488, 302.0771033312361, 0.503493, 0.121575, 0.423356, 302.102518056603, 0.50973, 0.123769, 0.422156, 302.12792630192774, 0.515967, 0.12596, 0.420887, 302.15334102729463, 0.522206, 0.12815, 0.419549, 302.1787492726193, 0.528444, 0.130341, 0.418142, 302.2041639979862, 0.534683, 0.132534, 0.416667, 302.2295787233531, 0.54092, 0.134729, 0.415123, 302.2549869686778, 0.547157, 0.136929, 0.413511, 302.2804016940447, 0.553392, 0.139134, 0.411829, 302.30580993936945, 0.559624, 0.141346, 0.410078, 302.33122466473634, 0.565854, 0.143567, 0.408258, 302.356632910061, 0.572081, 0.145797, 0.406369, 302.3820476354279, 0.578304, 0.148039, 0.404411, 302.4074623607948, 0.584521, 0.150294, 0.402385, 302.43287060611954, 0.590734, 0.152563, 0.40029, 302.4582853314864, 0.59694, 0.154848, 0.398125, 302.48369357681116, 0.603139, 0.157151, 0.395891, 302.50910830217805, 0.60933, 0.159474, 0.393589, 302.53451654750273, 0.615513, 0.161817, 0.391219, 302.5599312728696, 0.621685, 0.164184, 0.388781, 302.5853459982365, 0.627847, 0.166575, 0.386276, 302.61075424356125, 0.633998, 0.168992, 0.383704, 302.63616896892813, 0.640135, 0.171438, 0.381065, 302.6615772142529, 0.64626, 0.173914, 0.378359, 302.68699193961976, 0.652369, 0.176421, 0.375586, 302.71240018494444, 0.658463, 0.178962, 0.372748, 302.73781491031133, 0.66454, 0.181539, 0.369846, 302.7632296356782, 0.670599, 0.184153, 0.366879, 302.78863788100296, 0.676638, 0.186807, 0.363849, 302.81405260636984, 0.682656, 0.189501, 0.360757, 302.8394608516946, 0.688653, 0.192239, 0.357603, 302.86487557706147, 0.694627, 0.195021, 0.354388, 302.89028382238615, 0.700576, 0.197851, 0.351113, 302.91569854775304, 0.7065, 0.200728, 0.347777, 302.9411132731199, 0.712396, 0.203656, 0.344383, 302.96652151844467, 0.718264, 0.206636, 0.340931, 302.99193624381155, 0.724103, 0.20967, 0.337424, 303.01734448913624, 0.729909, 0.212759, 0.333861, 303.0427592145031, 0.735683, 0.215906, 0.330245, 303.06816745982786, 0.741423, 0.219112, 0.326576, 303.09358218519475, 0.747127, 0.222378, 0.322856, 303.1189904305195, 0.752794, 0.225706, 0.319085, 303.1444051558864, 0.758422, 0.229097, 0.315266, 303.16981988125326, 0.76401, 0.232554, 0.311399, 303.19522812657794, 0.769556, 0.236077, 0.307485, 303.22064285194483, 0.775059, 0.239667, 0.303526, 303.24605109726957, 0.780517, 0.243327, 0.299523, 303.27146582263646, 0.785929, 0.247056, 0.295477, 303.2968740679612, 0.791293, 0.250856, 0.29139, 303.3222887933281, 0.796607, 0.254728, 0.287264, 303.34770351869497, 0.801871, 0.258674, 0.283099, 303.37311176401965, 0.807082, 0.262692, 0.278898, 303.39852648938654, 0.812239, 0.266786, 0.274661, 303.4239347347113, 0.817341, 0.270954, 0.27039, 303.44934946007817, 0.822386, 0.275197, 0.266085, 303.4747577054029, 0.827372, 0.279517, 0.26175, 303.5001724307698, 0.832299, 0.283913, 0.257383, 303.5255871561367, 0.837165, 0.288385, 0.252988, 303.55099540146136, 0.841969, 0.292933, 0.248564, 303.57641012682825, 0.846709, 0.297559, 0.244113, 303.601818372153, 0.851384, 0.30226, 0.239636, 303.6272330975199, 0.855992, 0.307038, 0.235133, 303.6526413428446, 0.860533, 0.311892, 0.230606, 303.6780560682115, 0.865006, 0.316822, 0.226055, 303.7034707935784, 0.869409, 0.321827, 0.221482, 303.7288790389031, 0.873741, 0.326906, 0.216886, 303.75429376426996, 0.878001, 0.33206, 0.212268, 303.7797020095947, 0.882188, 0.337287, 0.207628, 303.8051167349616, 0.886302, 0.342586, 0.202968, 303.8305249802863, 0.890341, 0.347957, 0.198286, 303.8559397056532, 0.894305, 0.353399, 0.193584, 303.8813544310201, 0.898192, 0.358911, 0.18886, 303.9067626763448, 0.902003, 0.364492, 0.184116, 303.93217740171167, 0.905735, 0.37014, 0.17935, 303.9575856470364, 0.90939, 0.375856, 0.174563, 303.9830003724033, 0.912966, 0.381636, 0.169755, 304.00840861772804, 0.916462, 0.387481, 0.164924, 304.0338233430949, 0.919879, 0.393389, 0.16007, 304.0592380684618, 0.923215, 0.399359, 0.155193, 304.0846463137865, 0.92647, 0.405389, 0.150292, 304.1100610391534, 0.929644, 0.411479, 0.145367, 304.1354692844781, 0.932737, 0.417627, 0.140417, 304.160884009845, 0.935747, 0.423831, 0.13544, 304.18629225516975, 0.938675, 0.430091, 0.130438, 304.21170698053663, 0.941521, 0.436405, 0.125409, 304.2371217059035, 0.944285, 0.442772, 0.120354, 304.2625299512282, 0.946965, 0.449191, 0.115272, 304.2879446765951, 0.949562, 0.45566, 0.110164, 304.31335292191983, 0.952075, 0.462178, 0.105031, 304.3387676472867, 0.954506, 0.468744, 0.099874, 304.36417589261146, 0.956852, 0.475356, 0.094695, 304.38959061797834, 0.959114, 0.482014, 0.089499, 304.414998863303, 0.961293, 0.488716, 0.084289, 304.4404135886699, 0.963387, 0.495462, 0.079073, 304.4658283140368, 0.965397, 0.502249, 0.073859, 304.49123655936154, 0.967322, 0.509078, 0.068659, 304.5166512847284, 0.969163, 0.515946, 0.063488, 304.54205953005317, 0.970919, 0.522853, 0.058367, 304.56747425542005, 0.97259, 0.529798, 0.053324, 304.59288250074474, 0.974176, 0.53678, 0.048392, 304.6182972261116, 0.975677, 0.543798, 0.043618, 304.6437119514785, 0.977092, 0.55085, 0.03905, 304.66912019680325, 0.978422, 0.557937, 0.034931, 304.69453492217013, 0.979666, 0.565057, 0.031409, 304.7199431674949, 0.980824, 0.572209, 0.028508, 304.74535789286176, 0.981895, 0.579392, 0.02625, 304.77076613818645, 0.982881, 0.586606, 0.024661, 304.79618086355333, 0.983779, 0.593849, 0.02377, 304.8215955889202, 0.984591, 0.601122, 0.023606, 304.84700383424496, 0.985315, 0.608422, 0.024202, 304.87241855961184, 0.985952, 0.61575, 0.025592, 304.8978268049366, 0.986502, 0.623105, 0.027814, 304.92324153030347, 0.986964, 0.630485, 0.030908, 304.94864977562816, 0.987337, 0.63789, 0.034916, 304.97406450099504, 0.987622, 0.64532, 0.039886, 304.9994792263619, 0.987819, 0.652773, 0.045581, 305.02488747168667, 0.987926, 0.66025, 0.05175, 305.05030219705355, 0.987945, 0.667748, 0.058329, 305.0757104423783, 0.987874, 0.675267, 0.065257, 305.1011251677452, 0.987714, 0.682807, 0.072489, 305.12653341306986, 0.987464, 0.690366, 0.07999, 305.15194813843675, 0.987124, 0.697944, 0.087731, 305.17736286380364, 0.986694, 0.70554, 0.095694, 305.2027711091284, 0.986175, 0.713153, 0.103863, 305.22818583449526, 0.985566, 0.720782, 0.112229, 305.25359407982, 0.984865, 0.728427, 0.120785, 305.2790088051869, 0.984075, 0.736087, 0.129527, 305.3044170505116, 0.983196, 0.743758, 0.138453, 305.32983177587846, 0.982228, 0.751442, 0.147565, 305.35524650124535, 0.981173, 0.759135, 0.156863, 305.3806547465701, 0.980032, 0.766837, 0.166353, 305.406069471937, 0.978806, 0.774545, 0.176037, 305.4314777172617, 0.977497, 0.782258, 0.185923, 305.4568924426286, 0.976108, 0.789974, 0.196018, 305.4823006879533, 0.974638, 0.797692, 0.206332, 305.50771541332017, 0.973088, 0.805409, 0.216877, 305.53313013868706, 0.971468, 0.813122, 0.227658, 305.5585383840118, 0.969783, 0.820825, 0.238686, 305.5839531093787, 0.968041, 0.828515, 0.249972, 305.6093613547034, 0.966243, 0.836191, 0.261534, 305.6347760800703, 0.964394, 0.843848, 0.273391, 305.660184325395, 0.962517, 0.851476, 0.285546, 305.6855990507619, 0.960626, 0.859069, 0.29801, 305.7110072960866, 0.95872, 0.866624, 0.31082, 305.7364220214535, 0.956834, 0.874129, 0.323974, 305.7618367468204, 0.954997, 0.881569, 0.337475, 305.78724499214513, 0.953215, 0.888942, 0.351369, 305.812659717512, 0.951546, 0.896226, 0.365627, 305.8380679628367, 0.950018, 0.903409, 0.380271, 305.8634826882036, 0.948683, 0.910473, 0.395289, 305.88889093352833, 0.947594, 0.917399, 0.410665, 305.9143056588952, 0.946809, 0.924168, 0.426373, 305.9397203842621, 0.946392, 0.930761, 0.442367, 305.96512862958684, 0.946403, 0.937159, 0.458592, 305.99054335495373, 0.946903, 0.943348, 0.47497, 306.0159516002784, 0.947937, 0.949318, 0.491426, 306.0413663256453, 0.949545, 0.955063, 0.50786, 306.06677457097004, 0.95174, 0.960587, 0.524203, 306.0921892963369, 0.954529, 0.965896, 0.540361, 306.1176040217038, 0.957896, 0.971003, 0.556275, 306.14301226702855, 0.961812, 0.975924, 0.571925, 306.16842699239544, 0.966249, 0.980678, 0.587206, 306.1938352377201, 0.971162, 0.985282, 0.602154, 306.219249963087, 0.976511, 0.989753, 0.61676, 306.24465820841175, 0.982257, 0.994109, 0.631017, 306.27007293377864, 0.988362, 0.998364, 0.644924],
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'elevation': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'Lab',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [327.5, 0.141176, 0.14902, 0.2, 334.225, 0.215686, 0.258824, 0.321569, 340.95, 0.243137, 0.368627, 0.380392, 347.675, 0.27451, 0.439216, 0.4, 354.4, 0.32549, 0.501961, 0.384314, 361.125, 0.403922, 0.6, 0.419608, 367.85, 0.486275, 0.701961, 0.454902, 374.575, 0.556863, 0.74902, 0.494118, 381.3, 0.670588, 0.8, 0.545098, 394.75, 0.854902, 0.901961, 0.631373, 401.475, 0.92549, 0.941176, 0.694118, 408.2, 0.960784, 0.94902, 0.776471, 414.925, 0.988235, 0.968627, 0.909804, 421.65, 0.839216, 0.815686, 0.772549, 428.375, 0.701961, 0.662745, 0.615686, 435.1, 0.6, 0.529412, 0.478431, 441.825, 0.501961, 0.403922, 0.360784, 448.55, 0.439216, 0.313725, 0.290196, 462.0, 0.301961, 0.164706, 0.176471],
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'mannings': {},
  'precipitation': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'Diverging',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [0.0, 0.968627, 0.988235, 0.960784, 5.947532224021576e-40, 0.546251, 0.811257, 0.537855, 3.995521614458853e-39, 0.138178, 0.546082, 0.271326, 7.457290487649492e-39, 0.069435, 0.486967, 0.222145, 8.372295311296909e-39, 1.0, 0.9490196078431372, 0.2, 9.7905536147481e-39, 1.0, 0.8666666666666667, 0.19607843137254902, 1.1757813367477812e-38, 1.0, 0.6352941176470588, 0.18823529411764706],
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'slope': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'RGB',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [1e-05, 1.0, 1.0, 1.0, 0.047, 0.0, 0.0, 0.0],
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'specific humidity': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'Diverging',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [0.007955370216050429, 0.993248, 0.906157, 0.143936, 0.007956455379367794, 0.983868, 0.904867, 0.136897, 0.007957540265998946, 0.974417, 0.90359, 0.130215, 0.00795862542931631, 0.964894, 0.902323, 0.123941, 0.007959710315947463, 0.9553, 0.901065, 0.118128, 0.007960795479264827, 0.945636, 0.899815, 0.112838, 0.007961880365895981, 0.935904, 0.89857, 0.108131, 0.007962965529213344, 0.926106, 0.89733, 0.104071, 0.007964050692530708, 0.916242, 0.896091, 0.100717, 0.007965135579161862, 0.906311, 0.894855, 0.098125, 0.007966220742479225, 0.89632, 0.893616, 0.096335, 0.00796730562911038, 0.886271, 0.892374, 0.095374, 0.007968390792427744, 0.876168, 0.891125, 0.09525, 0.007969475679058896, 0.866013, 0.889868, 0.095953, 0.00797056084237626, 0.85581, 0.888601, 0.097452, 0.007971646005693623, 0.845561, 0.887322, 0.099702, 0.007972730892324777, 0.83527, 0.886029, 0.102646, 0.007973816055642142, 0.82494, 0.88472, 0.106217, 0.007974900942273294, 0.814576, 0.883393, 0.110347, 0.007975986105590659, 0.804182, 0.882046, 0.114965, 0.007977070992221813, 0.79376, 0.880678, 0.120005, 0.007978156155539175, 0.783315, 0.879285, 0.125405, 0.00797924131885654, 0.772852, 0.877868, 0.131109, 0.007980326205487692, 0.762373, 0.876424, 0.137064, 0.007981411368805057, 0.751884, 0.874951, 0.143228, 0.00798249625543621, 0.741388, 0.873449, 0.149561, 0.007983581418753573, 0.730889, 0.871916, 0.156029, 0.007984666305384728, 0.720391, 0.87035, 0.162603, 0.007985751468702092, 0.709898, 0.868751, 0.169257, 0.007986836355333244, 0.699415, 0.867117, 0.175971, 0.007987921518650609, 0.688944, 0.865448, 0.182725, 0.007989006681967972, 0.678489, 0.863742, 0.189503, 0.007990091568599126, 0.668054, 0.861999, 0.196293, 0.00799117673191649, 0.657642, 0.860219, 0.203082, 0.007992261618547642, 0.647257, 0.8584, 0.209861, 0.007993346781865007, 0.636902, 0.856542, 0.21662, 0.007994431668496161, 0.626579, 0.854645, 0.223353, 0.007995516831813524, 0.616293, 0.852709, 0.230052, 0.007996601995130888, 0.606045, 0.850733, 0.236712, 0.00799768688176204, 0.595839, 0.848717, 0.243329, 0.007998772045079405, 0.585678, 0.846661, 0.249897, 0.007999856931710559, 0.575563, 0.844566, 0.256415, 0.008000942095027922, 0.565498, 0.84243, 0.262877, 0.008002026981659076, 0.555484, 0.840254, 0.269281, 0.00800311214497644, 0.545524, 0.838039, 0.275626, 0.008004197308293803, 0.535621, 0.835785, 0.281908, 0.008005282194924957, 0.525776, 0.833491, 0.288127, 0.00800636735824232, 0.515992, 0.831158, 0.294279, 0.008007452244873474, 0.506271, 0.828786, 0.300362, 0.008008537408190838, 0.496615, 0.826376, 0.306377, 0.00800962229482199, 0.487026, 0.823929, 0.312321, 0.008010707458139355, 0.477504, 0.821444, 0.318195, 0.00801179262145672, 0.468053, 0.818921, 0.323998, 0.008012877508087872, 0.458674, 0.816363, 0.329727, 0.008013962671405236, 0.449368, 0.813768, 0.335384, 0.00801504755803639, 0.440137, 0.811138, 0.340967, 0.008016132721353753, 0.430983, 0.808473, 0.346476, 0.008017217607984907, 0.421908, 0.805774, 0.35191, 0.00801830277130227, 0.412913, 0.803041, 0.357269, 0.008019387934619635, 0.404001, 0.800275, 0.362552, 0.008020472821250789, 0.395174, 0.797475, 0.367757, 0.008021557984568151, 0.386433, 0.794644, 0.372886, 0.008022642871199305, 0.377779, 0.791781, 0.377939, 0.00802372803451667, 0.369214, 0.788888, 0.382914, 0.008024812921147822, 0.360741, 0.785964, 0.387814, 0.008025898084465187, 0.35236, 0.783011, 0.392636, 0.00802698324778255, 0.344074, 0.780029, 0.397381, 0.008028068134413703, 0.335885, 0.777018, 0.402049, 0.008029153297731068, 0.327796, 0.77398, 0.40664, 0.00803023818436222, 0.319809, 0.770914, 0.411152, 0.008031323347679585, 0.311925, 0.767822, 0.415586, 0.008032408234310739, 0.304148, 0.764704, 0.419943, 0.008033493397628102, 0.296479, 0.761561, 0.424223, 0.008034578560945466, 0.288921, 0.758394, 0.428426, 0.008035663447576618, 0.281477, 0.755203, 0.432552, 0.008036748610893983, 0.274149, 0.751988, 0.436601, 0.008037833497525137, 0.266941, 0.748751, 0.440573, 0.0080389186608425, 0.259857, 0.745492, 0.444467, 0.008040003547473654, 0.252899, 0.742211, 0.448284, 0.008041088710791018, 0.24607, 0.73891, 0.452024, 0.00804217359742217, 0.239374, 0.735588, 0.455688, 0.008043258760739535, 0.232815, 0.732247, 0.459277, 0.008044343924056898, 0.226397, 0.728888, 0.462789, 0.008045428810688052, 0.220124, 0.725509, 0.466226, 0.008046513974005416, 0.214, 0.722114, 0.469588, 0.008047598860636569, 0.20803, 0.718701, 0.472873, 0.008048684023953933, 0.202219, 0.715272, 0.476084, 0.008049768910585087, 0.196571, 0.711827, 0.479221, 0.00805085407390245, 0.19109, 0.708366, 0.482284, 0.008051939237219814, 0.185783, 0.704891, 0.485273, 0.008053024123850967, 0.180653, 0.701402, 0.488189, 0.008054109287168331, 0.175707, 0.6979, 0.491033, 0.008055194173799485, 0.170948, 0.694384, 0.493803, 0.008056279337116848, 0.166383, 0.690856, 0.496502, 0.008057364223748002, 0.162016, 0.687316, 0.499129, 0.008058449387065366, 0.157851, 0.683765, 0.501686, 0.008059534550382729, 0.153894, 0.680203, 0.504172, 0.008060619437013883, 0.150148, 0.676631, 0.506589, 0.008061704600331248, 0.146616, 0.67305, 0.508936, 0.0080627894869624, 0.143303, 0.669459, 0.511215, 0.008063874650279764, 0.14021, 0.665859, 0.513427, 0.008064959536910917, 0.137339, 0.662252, 0.515571, 0.008066044700228281, 0.134692, 0.658636, 0.517649, 0.008067129863545646, 0.132268, 0.655014, 0.519661, 0.008068214750176798, 0.130067, 0.651384, 0.521608, 0.008069299913494163, 0.128087, 0.647749, 0.523491, 0.008070384800125315, 0.126326, 0.644107, 0.525311, 0.00807146996344268, 0.12478, 0.640461, 0.527068, 0.008072554850073833, 0.123444, 0.636809, 0.528763, 0.008073640013391196, 0.122312, 0.633153, 0.530398, 0.00807472517670856, 0.12138, 0.629492, 0.531973, 0.008075810063339715, 0.120638, 0.625828, 0.533488, 0.008076895226657077, 0.120081, 0.622161, 0.534946, 0.008077980113288231, 0.119699, 0.61849, 0.536347, 0.008079065276605596, 0.119483, 0.614817, 0.537692, 0.008080150163236748, 0.119423, 0.611141, 0.538982, 0.008081235326554113, 0.119512, 0.607464, 0.540218, 0.008082320489871475, 0.119738, 0.603785, 0.5414, 0.00808340537650263, 0.120092, 0.600104, 0.54253, 0.008084490539819994, 0.120565, 0.596422, 0.543611, 0.008085575426451146, 0.121148, 0.592739, 0.544641, 0.00808666058976851, 0.121831, 0.589055, 0.545623, 0.008087745476399665, 0.122606, 0.585371, 0.546557, 0.008088830639717028, 0.123463, 0.581687, 0.547445, 0.008089915803034392, 0.124395, 0.578002, 0.548287, 0.008091000689665544, 0.125394, 0.574318, 0.549086, 0.008092085852982909, 0.126453, 0.570633, 0.549841, 0.008093170739614063, 0.127568, 0.566949, 0.550556, 0.008094255902931426, 0.128729, 0.563265, 0.551229, 0.00809534078956258, 0.129933, 0.559582, 0.551864, 0.008096425952879944, 0.131172, 0.555899, 0.552459, 0.008097510839511097, 0.132444, 0.552216, 0.553018, 0.008098596002828461, 0.133743, 0.548535, 0.553541, 0.008099681166145824, 0.135066, 0.544853, 0.554029, 0.008100766052776978, 0.136408, 0.541173, 0.554483, 0.008101851216094342, 0.13777, 0.537492, 0.554906, 0.008102936102725495, 0.139147, 0.533812, 0.555298, 0.008104021266042859, 0.140536, 0.530132, 0.555659, 0.008105106152674013, 0.141935, 0.526453, 0.555991, 0.008106191315991376, 0.143343, 0.522773, 0.556295, 0.00810727647930874, 0.144759, 0.519093, 0.556572, 0.008108361365939893, 0.14618, 0.515413, 0.556823, 0.008109446529257257, 0.147607, 0.511733, 0.557049, 0.008110531415888411, 0.149039, 0.508051, 0.55725, 0.008111616579205774, 0.150476, 0.504369, 0.55743, 0.008112701465836928, 0.151918, 0.500685, 0.557587, 0.008113786629154292, 0.153364, 0.497, 0.557724, 0.008114871792471655, 0.154815, 0.493313, 0.55784, 0.00811595667910281, 0.15627, 0.489624, 0.557936, 0.008117041842420172, 0.157729, 0.485932, 0.558013, 0.008118126729051326, 0.159194, 0.482237, 0.558073, 0.00811921189236869, 0.160665, 0.47854, 0.558115, 0.008120296778999843, 0.162142, 0.474838, 0.55814, 0.008121381942317207, 0.163625, 0.471133, 0.558148, 0.008122467105634572, 0.165117, 0.467423, 0.558141, 0.008123551992265724, 0.166617, 0.463708, 0.558119, 0.008124637155583089, 0.168126, 0.459988, 0.558082, 0.008125722042214243, 0.169646, 0.456262, 0.55803, 0.008126807205531605, 0.171176, 0.45253, 0.557965, 0.00812789209216276, 0.172719, 0.448791, 0.557885, 0.008128977255480122, 0.174274, 0.445044, 0.557792, 0.008130062418797487, 0.175841, 0.44129, 0.557685, 0.00813114730542864, 0.177423, 0.437527, 0.557565, 0.008132232468746003, 0.179019, 0.433756, 0.55743, 0.008133317355377158, 0.180629, 0.429975, 0.557282, 0.008134402518694522, 0.182256, 0.426184, 0.55712, 0.008135487405325674, 0.183898, 0.422383, 0.556944, 0.008136572568643039, 0.185556, 0.41857, 0.556753, 0.008137657731960402, 0.187231, 0.414746, 0.556547, 0.008138742618591556, 0.188923, 0.41091, 0.556326, 0.00813982778190892, 0.190631, 0.407061, 0.556089, 0.008140912668540072, 0.192357, 0.403199, 0.555836, 0.008141997831857437, 0.1941, 0.399323, 0.555565, 0.008143082718488591, 0.19586, 0.395433, 0.555276, 0.008144167881805954, 0.197636, 0.391528, 0.554969, 0.008145253045123318, 0.19943, 0.387607, 0.554642, 0.00814633793175447, 0.201239, 0.38367, 0.554294, 0.008147423095071835, 0.203063, 0.379716, 0.553925, 0.008148507981702989, 0.204903, 0.375746, 0.553533, 0.008149593145020352, 0.206756, 0.371758, 0.553117, 0.008150678031651506, 0.208623, 0.367752, 0.552675, 0.00815176319496887, 0.210503, 0.363727, 0.552206, 0.008152848081600023, 0.212395, 0.359683, 0.55171, 0.008153933244917387, 0.214298, 0.355619, 0.551184, 0.00815501840823475, 0.21621, 0.351535, 0.550627, 0.008156103294865904, 0.21813, 0.347432, 0.550038, 0.008157188458183268, 0.220057, 0.343307, 0.549413, 0.00815827334481442, 0.221989, 0.339161, 0.548752, 0.008159358508131785, 0.223925, 0.334994, 0.548053, 0.00816044339476294, 0.225863, 0.330805, 0.547314, 0.008161528558080302, 0.227802, 0.326594, 0.546532, 0.008162613721397666, 0.229739, 0.322361, 0.545706, 0.008163698608028819, 0.231674, 0.318106, 0.544834, 0.008164783771346183, 0.233603, 0.313828, 0.543914, 0.008165868657977337, 0.235526, 0.309527, 0.542944, 0.0081669538212947, 0.237441, 0.305202, 0.541921, 0.008168038707925854, 0.239346, 0.300855, 0.540844, 0.008169123871243219, 0.241237, 0.296485, 0.539709, 0.008170209034560581, 0.243113, 0.292092, 0.538516, 0.008171293921191735, 0.244972, 0.287675, 0.53726, 0.0081723790845091, 0.246811, 0.283237, 0.535941, 0.008173463971140252, 0.248629, 0.278775, 0.534556, 0.008174549134457617, 0.250425, 0.27429, 0.533103, 0.008175634021088769, 0.252194, 0.269783, 0.531579, 0.008176719184406133, 0.253935, 0.265254, 0.529983, 0.008177804347723498, 0.255645, 0.260703, 0.528312, 0.00817888923435465, 0.257322, 0.25613, 0.526563, 0.008179974397672015, 0.258965, 0.251537, 0.524736, 0.008181059284303169, 0.260571, 0.246922, 0.522828, 0.008182144447620531, 0.262138, 0.242286, 0.520837, 0.008183229334251686, 0.263663, 0.237631, 0.518762, 0.008184314497569048, 0.265145, 0.232956, 0.516599, 0.008185399660886413, 0.26658, 0.228262, 0.514349, 0.008186484547517567, 0.267968, 0.223549, 0.512008, 0.00818756971083493, 0.269308, 0.218818, 0.509577, 0.008188654597466084, 0.270595, 0.214069, 0.507052, 0.008189739760783448, 0.271828, 0.209303, 0.504434, 0.0081908246474146, 0.273006, 0.20452, 0.501721, 0.008191909810731965, 0.274128, 0.199721, 0.498911, 0.008192994974049328, 0.275191, 0.194905, 0.496005, 0.008194079860680482, 0.276194, 0.190074, 0.493001, 0.008195165023997846, 0.277134, 0.185228, 0.489898, 0.008196249910628998, 0.278012, 0.180367, 0.486697, 0.008197335073946363, 0.278826, 0.17549, 0.483397, 0.008198419960577517, 0.279574, 0.170599, 0.479997, 0.00819950512389488, 0.280255, 0.165693, 0.476498, 0.008200590287212244, 0.280868, 0.160771, 0.472899, 0.008201675173843397, 0.281412, 0.155834, 0.469201, 0.008202760337160761, 0.281887, 0.150881, 0.465405, 0.008203845223791915, 0.28229, 0.145912, 0.46151, 0.008204930387109278, 0.282623, 0.140926, 0.457517, 0.008206015273740432, 0.282884, 0.13592, 0.453427, 0.008207100437057796, 0.283072, 0.130895, 0.449241, 0.008208185323688949, 0.283187, 0.125848, 0.44496, 0.008209270487006313, 0.283229, 0.120777, 0.440584, 0.008210355650323676, 0.283197, 0.11568, 0.436115, 0.00821144053695483, 0.283091, 0.110553, 0.431554, 0.008212525700272194, 0.28291, 0.105393, 0.426902, 0.008213610586903347, 0.282656, 0.100196, 0.42216, 0.008214695750220711, 0.282327, 0.094955, 0.417331, 0.008215780636851865, 0.281924, 0.089666, 0.412415, 0.008216865800169228, 0.281446, 0.08432, 0.407414, 0.008217950963486592, 0.280894, 0.078907, 0.402329, 0.008219035850117745, 0.280267, 0.073417, 0.397163, 0.00822012101343511, 0.279566, 0.067836, 0.391917, 0.008221205900066263, 0.278791, 0.062145, 0.386592, 0.008222291063383626, 0.277941, 0.056324, 0.381191, 0.00822337595001478, 0.277018, 0.050344, 0.375715, 0.008224461113332145, 0.276022, 0.044167, 0.370164, 0.008225546276649507, 0.274952, 0.037752, 0.364543, 0.008226631163280661, 0.273809, 0.031497, 0.358853, 0.008227716326598024, 0.272594, 0.025563, 0.353093, 0.008228801213229178, 0.271305, 0.019942, 0.347269, 0.008229886376546543, 0.269944, 0.014625, 0.341379, 0.008230971263177695, 0.26851, 0.009605, 0.335427, 0.00823205642649506, 0.267004, 0.004874, 0.329415],
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'temperature': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'RGB',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [289.0700779073391, 0.0, 1.0, 1.0, 289.6837325675103, 0.0, 0.0, 1.0, 289.7519164186404, 0.0, 0.0, 0.501960784314, 289.82010026977053, 1.0, 0.0, 0.0, 290.4337549299417, 1.0, 1.0, 0.0],
    'ScalarRangeInitialized': 1.0,
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'wind velocity': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'RGB',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [3.4756696958162663, 1.0, 1.0, 1.0, 3.6832183620752756, 0.0, 0.501960784314, 1.0, 3.890145625141893, 0.9098039215686274, 0.5568627450980392, 0.12156862745098039, 4.09707288820851, 0.8901960784313725, 0.06274509803921569, 0.21568627450980393],
    'ScalarRangeInitialized': 1.0,
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  # SubSurface
  'mask': {},
  'permeability': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'RGB',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [0.005866099282769428, 0.0, 0.0, 0.0, 1.1777945491468367, 1.0, 1.0, 1.0],
    'ScalarRangeInitialized': 1.0,
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'porosity': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'Lab',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [0.375, 0.960784, 1.0, 0.980392, 0.37835, 0.815686, 0.960784, 0.913725, 0.3817, 0.670588, 0.929412, 0.870588, 0.38505, 0.556863, 0.901961, 0.843137, 0.3884, 0.478431, 0.870588, 0.823529, 0.39175, 0.439216, 0.831373, 0.803922, 0.3951, 0.4, 0.8, 0.788235, 0.39844999999999997, 0.376471, 0.768627, 0.768627, 0.4018, 0.34902, 0.709804, 0.729412, 0.40515, 0.32549, 0.654902, 0.690196, 0.4085, 0.301961, 0.607843, 0.658824, 0.41185, 0.247059, 0.545098, 0.619608, 0.4152, 0.239216, 0.494118, 0.580392, 0.41855, 0.227451, 0.439216, 0.541176, 0.4219, 0.227451, 0.403922, 0.521569, 0.42525, 0.231373, 0.368627, 0.501961, 0.4286, 0.227451, 0.321569, 0.470588, 0.43195, 0.219608, 0.282353, 0.439216, 0.4353, 0.192157, 0.235294, 0.4, 0.43865, 0.160784, 0.184314, 0.34902, 0.442, 0.133333, 0.12549, 0.301961],
    'ScalarRangeInitialized': 1.0,
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'pressure': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'Lab',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [1e-06, 1.0, 0.984314, 0.901961, 1.9952623149688787e-06, 0.960784, 0.94902, 0.670588, 3.981071705534969e-06, 0.886275, 0.921569, 0.533333, 7.943282347242805e-06, 0.784314, 0.878431, 0.396078, 1.5848931924611107e-05, 0.666667, 0.839216, 0.294118, 3.1622776601683795e-05, 0.556863, 0.8, 0.239216, 0.0007628288235797449, 0.431373, 0.760784, 0.160784, 0.013147309366666518, 0.1607843137254902, 0.3803921568627451, 0.7333333333333333, 1.0, 0.054901960784313725, 0.1450980392156863, 0.9529411764705882],
    'ScalarRangeInitialized': 1.0,
    'UseLogScale': 1,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'saturation': {
    'AutomaticRescaleRangeMode': -1,
    'ColorSpace': 'Diverging',
    'Discretize': 1,
    'EnableOpacityMapping': 0,
    'HSVWrap': 0,
    'InterpretValuesAsCategories': 0,
    'NumberOfTableValues': 256,
    'RGBPoints': [0.043717426300221844, 0.45098, 0.007843, 0.0, 0.06762449064271632, 0.478431, 0.082353, 0.047059, 0.09153155498521079, 0.54902, 0.168627, 0.109804, 0.13934568367019975, 0.678431, 0.298039, 0.203922, 0.1871598123551886, 0.8, 0.439216, 0.321569, 0.23497394104017744, 0.858824, 0.584314, 0.388235, 0.28278806972516646, 0.901961, 0.729412, 0.494118, 0.33060219841015526, 0.921569, 0.835294, 0.580392, 0.35929067562114864, 0.858824, 0.858824, 0.603922, 0.3784163270951443, 0.741176, 0.788235, 0.490196, 0.3975419785691398, 0.592157, 0.729412, 0.4, 0.42623045578013313, 0.501961, 0.670588, 0.333333, 0.45013752012262764, 0.403922, 0.619608, 0.278431, 0.474044584465122, 0.32549, 0.580392, 0.231373, 0.4979516488076165, 0.254902, 0.541176, 0.188235, 0.5218587131501109, 0.184314, 0.501961, 0.14902, 0.5457657774926054, 0.121569, 0.470588, 0.117647, 0.5696728418350998, 0.086275, 0.439216, 0.117647, 0.5935799061775943, 0.07451, 0.419608, 0.145098, 0.632866860889765, 0.062745, 0.4, 0.176471, 0.8114721765094688, 0.8313725490196079, 0.9098039215686274, 0.9803921568627451, 0.9627905375027935, 0.24705882352941178, 0.5725490196078431, 0.8196078431372549, 1.0, 0.12941176470588237, 0.4470588235294118, 0.7098039215686275],
    'ScalarRangeInitialized': 1.0,
    'UseLogScale': 0,
    'VectorComponent': 0,
    'VectorMode': 'Magnitude',
  },
  'specific storage': {},
}


def applyColorMap(rep):
  fieldName = rep.ColorArrayName[1]
  lut = simple.GetColorTransferFunction(fieldName)
  simple.SetProperties(lut, **PRESETS[fieldName])


def applyColorMode(typeName, value):
  for field in FIELDS[typeName]:
    lut = simple.GetColorTransferFunction(field)
    lut.AutomaticRescaleRangeMode = value


def rescaleColor(typeName, rep):
  fieldName = rep.ColorArrayName[1]
  if fieldName in FIELDS[typeName]:
    # lut = simple.GetColorTransferFunction(fieldName)
    # lut.RescaleTransferFunction(1, 2)
    rep.RescaleTransferFunctionToDataRange(False, True)

